### 
# @Description: 无
 # @version: 1.0.0
 # @Company: sdbean
 # @Author: hammercui
 # @Date: 2020-03-13 17:48:24
 # @LastEditors: hammercui
 # @LastEditTime: 2020-03-13 17:48:24
 ###

#coder shard1 master
docker run -it -d -p 27017:27017   -v /data/docker/mongo-coder-shard1/data:/data/db -v /data/docker/mongo-coder-shard1/log:/var/log  --name mongo-coder-shard1 mongo:4.0.17  -shardsvr -replSet shard1 -port 27017 -dbpath /data/db -oplogSize 100 -logpath /var/log/mongod.log -logappend


#coder shard1 slave
docker run -it -d -p 27117:27117   -v /data/docker/mongo-coder-shard1/data:/data/db -v /data/docker/mongo-coder-shard1/log:/var/log  --name mongo-coder-shard1 mongo:4.0.17  -shardsvr -replSet shard1 -port 27117 -dbpath /data/db -oplogSize 100 -logpath /var/log/mongod.log -logappend


#coder shard1 arbiter
docker run -it -d -p 27117:27117   -v /data/docker/mongo-coder-arbiter1/data:/data/db -v /data/docker/mongo-coder-arbiter1/log:/var/log  --name mongo-coder-arbiter1 mongo:4.0.17  -shardsvr -replSet shard1 -port 27117 -dbpath /data/db -oplogSize 100 -logpath /var/log/mongod.log -logappend


#prod shard1 master 
#prod shard1 slave
docker run -it -d -p 27017:27017   -v /data/docker/mongo-prod-shard1/data:/data/db -v /data/docker/mongo-prod-shard1/log:/var/log  --name mongo-prod-shard1 mongo:4.0.17  -shardsvr -replSet shard1 -port 27017 -dbpath /data/db -oplogSize 100 -logpath /var/log/mongod.log -logappend

#prod shard1 arbiter
docker run -it -d -p 27017:27017   -v /data/docker/mongo-prod-arbiter1/data:/data/db -v /data/docker/mongo-prod-arbiter1/log:/var/log  --name mongo-prod-arbiter2 mongo:4.0.17  -shardsvr -replSet shard1 -port 27017 -dbpath /data/db -oplogSize 100 -logpath /var/log/mongod.log -logappend